from books.models import *
from django.core.serializers.json import Serializer as JsonSerializer
from django.core.serializers.python import Serializer as PythonSerializer


def run():
    qs = Books.objects.all()
    # print(qs)
    res = JsonSerializer().serialize(qs, indent=True)
    print(res)
    res = PythonSerializer().serialize(qs, indent=True)
    print(res)
